import Vue from "vue";
import VueRouter from "vue-router"
import login from "@/views/login.vue";
import home from '@/views/home';
import users from '@/views/users';
import welcome from '@/views/welcome'
Vue.use(VueRouter)
const routes = [
    { path: '/login', component: login },
    {
        path: '/',
        component: home,
        redirect: '/welcome',
        children: [   
            { path: 'users', component: users },
            { path: 'welcome', component: welcome }
        ]
    }
]
const router = new VueRouter({
    routes
})

export default router